﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AIStudio.Wpf.DiagramDesigner.Geometrys;

namespace AIStudio.Wpf.DiagramDesigner
{
    public struct ConnectorInfo
    {
        public double DesignerItemLeft { get; set; }
        public double DesignerItemTop { get; set; }
        public SizeBase DesignerItemSize { get; set; }
        public PointBase Position { get; set; }
        public ConnectorOrientation Orientation { get; set; }

        public static ConnectorInfo GetConnectorInfo(ConnectorOrientation orientation, double left, double top, double width, double height, PointBase position)
        {
            return new ConnectorInfo()
            {
                Orientation = orientation,
                DesignerItemSize = new SizeBase(width, height),
                DesignerItemLeft = left,
                DesignerItemTop = top,
                Position = position
            };
        }
    }
}
